/**
 *
 */
package com.angel.annotation.interfaces;

import java.lang.annotation.Annotation;

/**
 * @author William
 *
 */
public interface AnnotationObjectFinder {

	/** Find an annotation implementation for an object.
	 * 
	 * @param object to find an annotation.
	 * @param annotationClass to find in the object.
	 * @return an annotation if it exists. Otherwise it returns null.
	 */
	public <T extends Annotation> Annotation findAnnotationAt(Object object, Class<T> annotationClass);
	
	public <T extends Annotation> Object findTargetObjectFor(Object object, Class<T> annotationClass);

}
